import {fromEvent} from '../dist/index.esm.js'

const source = fromEvent(document,'click')
const subscriber = source.subscribe(console.log)
setTimeout(()=>{
  subscriber.unsubscribe()
},3000)